//
//  MakeDetialTableViewCell.m
//  BakeCenter
//
//  Created by lanou3g on 15/9/21.
//  Copyright (c) 2015年 Baked. All rights reserved.
//

#import "MakeDetialTableViewCell.h"

@implementation MakeDetialTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.stepImage = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWidth / 4, 15, kScreenWidth/ 2, 130)];
        [self.contentView addSubview:self.stepImage];

        self.step = [[UILabel alloc] initWithFrame:CGRectMake(self.stepImage.left - 50, self.stepImage.bottom + 5, kScreenWidth / 2 + 100, 70)];
        self.step.numberOfLines = 0;
        self.step.font = [UIFont systemFontOfSize:15];
        self.step.textAlignment = NSTextAlignmentCenter;
//        
//        CGFloat height = self.stepImage.bottom+ contentRect.size.height+30;
//        
//        if (height < self.bounds.size.height) {
//            
//            height = self.bounds.size.height + 30;
//        }
        

        
        
        
        
        
        [self.contentView addSubview:self.step];
      
        self.number = [[UILabel alloc] initWithFrame:CGRectMake(15, 5, 50, 50)];
        self.number.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:20];
        [self.contentView addSubview:self.number];
        
  
    }
    return self;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
